package com.xjggb.lambda;

public class Demo01 {

    public static void main(String[] args) {

        goShow(new UserService() {
            public void show() {
                System.out.println("show 方法执行了...");
            }
        });


        goShow(()->{
            System.out.println("Lambda show 方法执行了...");
        });

    }

    public static void goShow(UserService userService){
        userService.show();
    }


}
